﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo061801
{
    class Staff
    {
        //工号、姓名、性别、学历和部门信息
        private int Id;
        private string Name;
        private string Sex;
        private string Xueli;
        private string Bumen;


        public int Id1 { get => Id; set => Id = value; }
        public string Name1 { get => Name; set => Name = value; }
        public string Sex1 { get => Sex; set => Sex = value; }
        public string Xueli1 { get => Xueli; set => Xueli = value; }
        public string Bumen1 { get => Bumen; set => Bumen = value; }
        //无参
        public Staff()
        {
            Id = 10086;
            Name = "张三";
            Sex = "男";
            Xueli = "专科";
            Bumen = "信息部";
        }

        //有参
        public Staff(int id, string name, string sex, string xueli, string bumen)
        {
            this.Id    = id;
            this.Name  = name;
            this.Sex   = sex;
            this.Xueli = xueli;
            this.Bumen = bumen;
        }
        public void User() 
        {
            Console.WriteLine("员工工号:{0}", this.Id);   
            Console.WriteLine("员工姓名:{0}",this.Name ) ;
            Console.WriteLine("员工性别:{0}", this.Sex);
            Console.WriteLine("员工学历:{0}",this.Xueli);
            Console.WriteLine("员工部门:{0}", this.Bumen);
        }
    }
}
